package com.wlyuan.open.scanner.domain.finance;

import com.alibaba.fastjson.JSONObject;
import com.wlyuan.open.scanner.domain.BaseDomain;
import com.wlyuan.open.scanner.domain.transport.Transport;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * @author lijing
 * @description
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class Bill extends BaseDomain {

    private Long id;

    @ApiModelProperty("对账单编号")
    private String billNo;
    @ApiModelProperty("对账单编号")
    private String name;
    @ApiModelProperty("对账单类型")
    private Integer billType;
    @ApiModelProperty("描述")
    private String desc;
    @ApiModelProperty("创建人")
    private Long createBy;
    @ApiModelProperty("修改人")
    private Long updateBy;

    @ApiModelProperty("上游信息")
    private BillUp upStream;
    @ApiModelProperty("下游信息")
    private BillDown downStream;

    @ApiModelProperty("运单信息")
    private List<Transport> waybills;

    @ApiModelProperty("开票信息")
    private BillInvoiceDetail invoice;

    @ApiModelProperty("扩展信息")
    private JSONObject echo;

    @ApiModelProperty("待审核标识")
    private Integer waitAuditFlag;
}
